package org.zachary.prosocialbehaviorservice.domain.repository;

import org.springframework.data.jpa.repository.JpaRepository;
import org.zachary.prosocialbehaviorservice.domain.aggregate_model.activity.ActivityItem;
import org.zachary.prosocialbehaviorservice.domain.aggregate_model.activity.ActivityToItem;

import java.util.List;

public interface ActivityItemRepository{
    List<ActivityItem> findAllById(List<ActivityToItem> itemIds);

    void save(ActivityItem item);

    void deleteById(Integer itemId);

    ActivityItem findById(Integer itemId);

    List<ActivityItem> findByIds(List<Integer> ids);

    List<ActivityItem> findAll();

    void decrementByOne(Integer itemId);
}
